<template>
<div>
    <van-grid  :column-num='channelArr.length'>
  <van-grid-item v-for='item in channelArr' :key='item.id' :icon="item.icon_url" :text="item. name"  @click="chanFn(item.id)"/>
 
</van-grid>
</div>
</template>
<script>
export default {
name: 'Grid',
props:['channelArr'],
data() {
return {}
},
components: {
},
methods: {
  chanFn(id){
   this.$router.push({
      path:'/classification',
      query:{
        name:id
      }
    })
  }
},
created() {},
mounted() {},
updated() {},
};
</script>
<style scoped>
</style>